package top.yueyazhui.valid.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import top.yueyazhui.valid.entity.User;
import top.yueyazhui.valid.mapper.UserMapper;
import top.yueyazhui.valid.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户 服务实现类
 * </p>
 *
 * @author yueyazhui
 * @since 2022-09-05
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public int addUser(User user) {
        return userMapper.insert(user);
    }
}
